package com.thwj.project.biz.enums;

/**
 * 活动折扣类型
 */
public enum ActivityDiscountTypeEnum {
    woman_discount(1,"女生优惠"),
    ;
    ActivityDiscountTypeEnum(int value, String name){
        this.name = name;
        this.value = value;
    }

    private int value;
    private String name;

    public int getValue() {
        return value;
    }

    public String getName() {
        return name;
    }

    public static ActivityDiscountTypeEnum getEnumByValue(Integer value){
        for (ActivityDiscountTypeEnum typeEnum : ActivityDiscountTypeEnum.values()) {
            if(typeEnum.value == value) {
                return typeEnum;
            }
        }
        return null;
    }
}
